<template>
  <el-card shadow="never">
    <el-form :model="form" ref="form" :inline="true">
      <el-form-item label="物资名称">
        <el-input v-model="form.materialName" placeholder="请输入物资名称搜索" />
      </el-form-item>
      <el-form-item>
        <el-button icon="el-icon-search" @click="handleSearch"></el-button>
      </el-form-item>
    </el-form>
    <el-tabs v-model="name">
      <el-tab-pane label="物资目录" name="first">
        <goods-list :name="name" ref="goodsList" />
      </el-tab-pane>
      <el-tab-pane label="药品目录" name="second">
        <drug-list :name="name" ref="drugList" />
      </el-tab-pane>
    </el-tabs>
  </el-card>
</template>

<script>
import GoodsList from './GoodsList'
import DrugList from './DrugList'

export default {
  components: {
    GoodsList,
    DrugList
  },
  data() {
    return {
      form: {
        materialName: null
      },
      name: 'first'
    }
  },
  methods: {
    handleSearch() {}
  }
}
</script>